package com.sc.client;

import com.sc.result.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(name = "sc-employee", path = "/api/v1/emp")
public interface EmployeeServiceClient {
    @GetMapping("getName/{eid}")
    Result<String> getTeacherName(@PathVariable("eid") Long eid);
}
